<?php 
class sylabus_model extends CI_Model{
	function sylabus_model()
	{
		 'parent'||model();
	}
     function selectsylabus($courseid)
         {
	    $query = "SELECT * FROM courses_available cav , course_sylabus cslb  where cslb.courseid='$courseid' and cav.id='$courseid'";
	         $result=$this->db->query($query); 
	    if( $result->num_rows() > 0 ){
		   
		  return $result;
		 }
		 else{
		  return false;
		 }
	 }
}
 ?>